package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 关注表
 * </p>
 *
 * @author Mr.we
 * @since 2024-06-04
 */
@Getter
@Setter
@ApiModel(value = "Follow对象", description = "关注表")
public class Follow implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("关注id")
    @TableId(value = "follow_id", type = IdType.AUTO)
    private Integer followId;

    @ApiModelProperty("关注者id")
    private Integer followUserId;

    @ApiModelProperty("被关注者id")
    private Integer followedUserId;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("状态码 1 有效 0无效")
    private Boolean flag;
}
